/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pa165.languageschoolservice.service;


import com.pa165.languageschoolpersistence.Exceptions.ServiceFailureException;
import com.pa165.languageschoolservice.DTO.LectureDTO;
import com.pa165.languageschoolservice.DTO.StudentDTO;
import java.util.List;

/**
 *
 * @author Jiri Uhlir
 */
public interface StudentService {  

    public StudentDTO add(StudentDTO lecture) throws ServiceFailureException;

    public void remove(StudentDTO lecture) throws ServiceFailureException;

    public StudentDTO modify(StudentDTO lecture) throws ServiceFailureException;

    public StudentDTO get(Long id) throws ServiceFailureException;

    public List<StudentDTO> getAll() throws ServiceFailureException;

    public LectureDTO enrollStudentToLecture(LectureDTO lecture, StudentDTO student) throws ServiceFailureException;

    public List<StudentDTO> findByLecture(LectureDTO lecture) throws ServiceFailureException;

    public List<StudentDTO> findByName(String name) throws ServiceFailureException;
    
    public StudentDTO getByLogin(String login) throws ServiceFailureException;
}
